home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 6
/
FM Towns Free Software Collection 6.iso
/
t_os
/
vdtwn
/
tvf
/
asmhd6
/
comdhd6
/
sdset.hd6
< prev
Wrap
Text File
|
1993-07-08
|
4KB
|
336 lines
ds_name db '\SDSET',0
paint_wd:
call wari_set1
call wari_set
WD_LEFT
ret
re_paint:
mouse_in:
ret
mos_bios macro
call fword ptr fs:[40h]
endm
sound_bios macro
call fword ptr fs:[80h]
endm
int_bios macro
call fword ptr fs:[1a0h]
endm
int_save macro
mov ah,30h
call fword ptr fs:[1c0h]
endm
int_load macro
mov ah,31h
call fword ptr fs:[1c0h]
endm
;=========================================
mae_komi4:
call sub_esi
db 30 dup(0)
mae_ad1:
call sub_esi
dw 0 ;seg
dd 0 ;adr
dd 0 ;real ad
wari_set1:
mov ah,1
call MOUSE
call mae_komi4
mov ax,804h
int_bios
mov ax,704h ;ユーザー割り込みの削除 2
int_bios
mov ah,2 ;マウス割り込みの終了 3
int_bios
ret
wari_set:
mos_test proc near
push dword ptr 110h
pop fs
push ds
pop gs
call MOS_init
push ds
pop es
mov ax,0201h
mos_bios
ret
be_called:
mov ax,0200h
mos_bios
mov ah,25
mov al,2
mov bx,0
call komei ; 画面0 cls
mov ah,25
mov al,2
mov bx,1
call komei ; 画面1 cls
call MOS_end
Bye:
mov ax,4c00h
int 21h
Error:
mov ax,4c01h
int 21h
;==============================
MOS_init:
mov cl,4dh
mov ax,2502h
int 21h
jc Error
call mae_ad1
mov ax,es
mov [esi],ax
mov [esi+2],ebx
push ds
pop es
mov cl,4dh
mov ax,2503h
int 21h
jc Error
call mae_ad1
mov [esi+6],ebx
push ds
mov cl,4dh
lds edx,fs:[1a8h]
mov ax,2506h
int 21h
pop ds
jc Error
mov ax,0
call Mos_work
mov ecx,4096 ;++
push ds
pop gs
mos_bios
mov ah,0
int 90h ;key boad bios 初期化
mov ah,02h
mov dx,0000001000000000b
int 90h ;key coad style set
mov ah,03h
mov dx,0000001000000000b
int 90h ;key coad read style set
mov ah,30h
call fword ptr fs:[80h]
mov ah,1
call Mos_stack
add edx,4098
int_bios
; call usr_pr
; call usr_work
; mov [esi],edi
; push cs
; pop eax
; mov [esi+4],eax
; push ds
; pop eax
; mov [esi+8],eax
; mov [esi+12],eax
; mov [esi+16],eax
; mov [esi+20],eax
; mov eax,110h
; mov [esi+16],eax
; mov ax,604h
; int_bios
mov ah,16h
mov bl,0ffh
mov cx,0b0h
sound_bios
ret
Mos_work:
call sub_edi
db 4100 dup (0)
Mos_stack:
call sub_edx
db 4100 dup (0)
;============================
Mos_end:
mov ah,16h
mov bl,0
sound_bios
mov ah,1 ;マウスバイオスの終了 1
mos_bios
; mov ax,704h ;ユーザー割り込みの削除 2
; int_bios
mov ah,2 ;マウス割り込みの終了 3
int_bios
call mae_ad1
mov ax,[esi]
mov edx,[esi+2]
mov ebx,[esi+6]
push ds
mov ds,ax
mov cl,4dh
mov ax,2507h
int 21h
pop ds
call mae_komi4
mov ax,604h
int_bios
mov ah,0
int 90h ;key bios syokika
GAMEN 1616
ret
mos_test endp
;==================
; align 4
;usr_pr:
; call sub_edi
;usr proc far
; call pal_work
; call pal_d
; movzx eax,byte ptr [esi+8]
; add ax,[edi] ;word ptr [pal_d]
; jne #skip1
; mov word ptr [edi],8
; jmp #skip2
;#skip1:
; cmp ax,100h
; jl #skip2
; mov word ptr [edi],-8
; mov al,248
;#skip2:
; mov [esi+8],al
; mov [esi+9],al
; mov [esi+10],al
; mov ax,400h
; call zzz
; ret
;usr endp
;zzz:
; M_ZZZ
;================================
; align 4
;usr_work:
; call sub_esi
; dd 0,0
;usr_ds dd 0 ;8
;usr_es dd 0 ;12
;usr_fs dd 0 ;16
;usr_gs dd 0 ;20
;pal_work:
; call sub_esi
; dd 1,6
; db 0,0,0,0
;pal_d:
; call sub_edi
; dw 8
look_me:
call sub_esi
dd 0,0
dw 1,0,40,24,593,25,15,5,0,0